package com.vanzo.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.Arrays;

import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by tisen on 2018/3/5.
 */
@Entity
public class Master {
    @Id(autoincrement = true)
    private Long id;
    private byte[] gk;
    private int groupId;
    private int channelId;
    private int followerSize;
    private int firstId;
    private int terminalId;
    private boolean locked;
    private boolean isMaster;


    @Generated(hash = 1831315470)
    public Master(Long id, byte[] gk, int groupId, int channelId, int followerSize,
            int firstId, int terminalId, boolean locked, boolean isMaster) {
        this.id = id;
        this.gk = gk;
        this.groupId = groupId;
        this.channelId = channelId;
        this.followerSize = followerSize;
        this.firstId = firstId;
        this.terminalId = terminalId;
        this.locked = locked;
        this.isMaster = isMaster;
    }

    @Generated(hash = 1646309065)
    public Master() {
    }


    @Override
    public String toString() {
        return "Master{" +
                "id=" + id +
                ", gk=" + gk+
                ", groupId=" + groupId +
                ", channelId=" + channelId +
                ", followerSize=" + followerSize +
                ", firstId=" + firstId +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public byte[] getGk() {
        return gk;
    }

    public void setGk(byte[] gk) {
        this.gk = gk;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getChannelId() {
        return channelId;
    }

    public void setChannelId(int channelId) {
        this.channelId = channelId;
    }

    public int getFollowerSize() {
        return followerSize;
    }

    public void setFollowerSize(int followerSize) {
        this.followerSize = followerSize;
    }

    public int getFirstId() {
        return firstId;
    }

    public void setFirstId(int firstId) {
        this.firstId = firstId;
    }

    public boolean getLocked() {
        return this.locked;
    }

    public void setLocked(boolean locked) {
        this.locked = locked;
    }

    public boolean getIsMaster() {
        return this.isMaster;
    }

    public void setIsMaster(boolean isMaster) {
        this.isMaster = isMaster;
    }

    public int getTerminalId() {
        return this.terminalId;
    }

    public void setTerminalId(int terminalId) {
        this.terminalId = terminalId;
    }
}
